From 15c1aa1b26a108c8c0211b04b6a1b8b3d2d074fd Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Tue, 13 Jul 2004 00:08:28 +0000 Subject: [PATCH] (with-selected-window): Doc fix. --- lisp/subr.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/subr.el b/lisp/subr.el index f2c643b6690..9dd1e415212 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1799,6 +1799,12 @@ See also `with-temp-buffer'." "Execute the forms in BODY with WINDOW as the selected window. The value returned is the value of the last form in BODY. This does not alter the buffer list ordering. +This function saves and restores the selected window, as well as +the selected window in each frame. If the previously selected +window of some frame is no longer live at the end of BODY, that +frame's selected window is left alone. If the selected window is +no longer live, then whatever window is selected at the end of +BODY remains selected. See also `with-temp-buffer'." (declare (indent 1) (debug t)) ;; Most of this code is a copy of save-selected-window. -- 2.30.2